package appapi.Vo;

import appapi.entity.AppAmg.AnnexDtoImgDto;
import appapi.entity.AppAmg.MonthdetaImgDto;
import appapi.entity.Zhongjiao.AnnexDto;
import appapi.entity.Zhongjiao.MonthdetailDto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@ApiModel
@Data
@NoArgsConstructor
@Accessors(chain = true)
public class AddMonthinspectionVo {
    private static final long serialVersionUID = 1L;
    /**
     * 记录ID
     */
    @ApiModelProperty(value = "记录ID")
    private Long monthId;

    /**
     * 设备id
     */
    @ApiModelProperty(value = "设备id", required = true)
    @NotNull(message = "设备id不能为空")
    private Long equipId;

    /**
     * 设备名称
     */
    @ApiModelProperty(value = "设备名称", required = true)
    @NotNull(message = "设备名称不能为空")
    private String equipName;

    /**
     * 月检项目
     */
    @ApiModelProperty(value = "月检项目")
    private Long itemId;

    /**
     * 月检要求
     */
    @ApiModelProperty(value = "月检要求")
    private String itemRequire;

    /**
     * 月检人员
     */
    @ApiModelProperty(value = "月检人员", required = true)
    @NotNull(message = "月检人员不能为空")
    private Integer operator;

    /**
     * 0-正常;1-异常
     */
    @ApiModelProperty(value = "0-正常;1-异常")
    private Integer monthResult;

    /**
     * 月检时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "月检时间")
    private Date monthDate;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String monthNote;

    /**
     * 0-已处理;1-未处理
     */
    @ApiModelProperty(value = "0-已处理;1-未处理")
    private Integer auditState;

    /**
     * 处理时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "处理时间")
    private Date auditDate;

    /**
     * 操作人员
     */
    @ApiModelProperty(value = "操作人员")
    private Long staffId;
    /**
     * 创建时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    @ApiModelProperty(value = "附件地址url")
    private List<String> annexUrl;
    private List<MonthdetaImgDto> monthdetailDtos;
    private List<AnnexDtoImgDto> annexes;
}
